package sctu.edu.java.year2016.team06.luoxin.day20160613;


import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;


import java.io.IOException;

/**使用http协议，服务器返回响应HTML给浏览器
 * Created by Administrator on 2016/6/13.
 */
public class TeacherClient {
    public static void main(String[] args) {
        Document document = null;
        try {
            document = Jsoup.connect("http://www.sctu.edu.cn").get();
            Elements elements = document.select("ul");
            System.out.println(elements.get(0));
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
